package com.gelian.demo;

import android.app.Application;
import android.content.Context;

public class DemoApplication extends Application {

    private static Context context;

    public static Context getApplication() {
        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));

    }
}
